home *** CD-ROM | disk | FTP | other *** search
- procedure TForm1.TabbedNotebook1Change(Sender: TObject; NewTab: Integer;
- var AllowChange: Boolean);
- var
- CurrentTab, NextTab: TNotebookTabs;
- begin
- CurrentTab := GetNotebookPage( TabbedNotebook1.PageIndex );
- NextTab := GetNotebookPage( NewTab );
-
- case CurrentTab of
- ntInit : { Init page specific processing }
- ntSettings : { Settings page specific processing }
- ntGeneral : { General page specific processing }
- ntMiscellaneous : { Miscellaneous page specific processing }
- end { case CurrentTab };
-
- case NextTab of
- ntInit : { Init page specific processing...}
-
- { I think you get the idea }
-
- end { case NextTab };
- end;
-